

// 循环生成margin
.margin-loop(@base: 4, @multiple: 2, @max: 32) when (@base <=@max) {
    .mt@{base} {
        margin-top: @base * 1px;
    }

    .mb@{base} {
        margin-bottom: @base * 1px;
    }

    .ml@{base} {
        margin-left: @base * 1px;
    }

    .mr@{base} {
        margin-right: @base * 1px;
    }

    .margin-loop(@base * @multiple, @multiple, @max);
}

// 循环生成padding
.padding-loop(@base: 4, @multiple: 2, @max: 32) when (@base <=@max) {
    .pt@{base} {
        padding-top: @base * 1px;
    }

    .pb@{base} {
        padding-bottom: @base * 1px;
    }

    .pl@{base} {
        padding-left: @base * 1px;
    }

    .pr@{base} {
        padding-right: @base * 1px;
    }

    .padding-loop(@base * @multiple, @multiple, @max);
}

.padding-loop();
.margin-loop();

.w100 {
    width: 100%;
}

.h100 {
    height: 100%;
}

.mr12 {
    margin-right: 12px;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Microsoft YaHei-Regular, Microsoft YaHei;
    background-color: #f2f3f8;
}

.left {
    float: left;
}

.right {
    float: right;
}

.clearfix {
    zoom: 1;

    &:after {
        content: "";
        display: block;
        clear: both;
        visibility: hidden;
        height: 0;
    }
}


.info-text-btn {
    color: #7c828d !important;

    &:focus,
    &:hover {
        color: #7c828d;
    }
}

.el-message-box:not(.el-message-box--center) {
    max-width: 550px;
    min-width: 420px;
    width: auto;

    .el-message-box__header {
        padding: 14px 16px;
        font-size: 16px;
        line-height: 16px;
    }

    .el-message-box__close {
        color: #a2a7ae;
        font-size: 18px;
        font-weight: bold;
    }

    .el-message-box__content {
        padding: 33px 26px 41px 41px;
        font-size: 16px;
        line-height: 22px;
    }

    .el-message-box__btns {
        padding: 11px 17px 0;

        .el-button {
            font-size: 14px;
        }
    }
}

.el-form {
    .el-form-item.hidden-label {
        .el-form-item__label {
            display: none;
        }

        .el-form-item__content {
            margin-left: 0 !important;
        }
    }
}

.el-form-item__error {
    padding-top: 2px;
}


.common-table {
    width: 100%;
    border-bottom: none;
    th {
        background-color: #f2f3f8;
    }

    td {
        .cell {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            display: block;
        }
    }
    .el-table__header{
        th{
         background: #F0F0F0;
        }
    }
}

.common-drawer {
    .el-dialog__close {
        font-size: 20px;
        color: #a2a7ae;
        font-weight: bold;
    }
}

.with-suffix-search-input {
    .el-input__inner {
        padding-right: 62px;
    }
}

.el-tree__empty-text {
    &:before {
        content: "";
        display: block;
        background: url("../images/emptyIcon.png") no-repeat;
        background-size: 80px;
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
}

.el-drawer .el-drawer__header {
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    height: 50px;
    line-height: 50px;
    background: #fff;
    font-size: 16px;
    color: var(--fontDefaultColor);
    padding: 0 16px;
}

.el-drawer .el-drawer__body {
    height: calc(100% - 50px);
    height: 100%;
    overflow-y: auto;
    flex: unset;

    .el-tabs {
        height: 100%;

        .el-tabs__content {
            height: calc(100% - 43px);
            .el-tab-pane {
                height: 100%;
            }
        }

        &.is-hidden-tab-header {
            .el-tabs__content {
                height: 100%;
            }
        }
    }
}
.el-drawer .el-drawer__body .el-form {
    height: calc(100%);
    overflow-y: auto;
    position: relative;
    padding-bottom: 64px;
}

.el-drawer .bt-op {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 54px;
    line-height: 54px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
    padding: 0 15px;
    background-color: #fff;
    z-index: 99;
}

// 宽度小的滚动条
.scroll-min {
    ::-webkit-scrollbar,
    ::-webkit-scrollbar-track-piece,
    ::-webkit-scrollbar-thumb {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #e1e1e1;
        border-radius: 5px;
        border: 1px solid rgba(219, 223, 233, 0.5);
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--btnBorderColor);
    }

    ::-webkit-scrollbar-track-piece {
        width: 8px;
        // background: rgba(219, 223, 233, 0.3);
        background: transparent;
        border-radius: 5px;
    }
    ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner, ::-webkit-scrollbar, ::-webkit-scrollbar-track-piece{
        background: transparent;
    }
}

.scroll-min-table {
    .el-table__body-wrapper {
        .scroll-min;
    }
}

.curpoin {
    cursor: pointer;
}

#app {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
}

/* 标签div */
.tag-box {
    position: relative;
    min-height: 36px;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid var(--btnBorderColor);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    vertical-align: top;
    font-size: inherit;
    /* height:40px; */
    /* line-height:40px; */
    outline: 0;
    padding: 0 15px;
    -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
    padding-right: 48px;
    .clearfix;

    .el-tag {
        float: left;
        background-color: var(--bgColor);
        color: var(--fontDefaultColor);
    }

    &.other-tag-box {
        height: 88px;
        padding: 5px;
        overflow-y: auto;
    }
}

.tag-box .tag-box-btn {
    position: absolute;
    height: 100%;
    width: 49px;
    top: 0;
    right: 0;
    color: #fff;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 14px;
    padding-left: 9px;

}

.primarybtn-append .el-input-group__append {
    color: #fff;
}

.primarybtn-append .el-input-group__append .el-button {
    width: 48px;
    padding: 0;
    line-height: 34px;
}

.primarybtn-append .el-input__suffix {
    line-height: 34px;
    cursor: pointer;
}

.tag-box .el-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    height: 22px;
    line-height: 22px;
}


//el-form表单labeL不固定高度
.form-item-auto-height {
    position: relative;

    .el-form-item__label {
        height: auto;
        font-size: 14px;
        line-height: 19px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
}

//仓库弹出框
.store-drawer {
    .drawer-content {
        height: 100%;
        padding: 0 8px;

        .el-form {
            .el-form-item {
                margin-bottom: 16px;
            }
        }
    }
}

//功能权限弹出框
.function-dialog {


    .dialog-operation {
        margin: -10px 0 27px;
        padding-bottom: 15px;
    }

    .dialog-content {
        position: relative;
        padding: 0 30px;
        max-height: 200px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .checkbox-item {
        margin-bottom: 9px;

        .el-checkbox-group {
            margin-left: 32px;
        }

        .el-checkbox {
            height: 18px;
            line-height: 18px;
            margin-bottom: 16px;
            margin-right: 32px;
        }
    }
}

//排序弹出框
.sort-dialog {
    .el-table__empty-block {
        margin-top: 60px;
    }
}

//面包屑
.breadcrumb-container {
    width: 100%;
    font-size: 16px;
    padding: 0 21px;
    height: 45px;
    line-height: 45px;
}

// 版本管理
.versionManageTable {
    padding: 0 10px;
    .space-between-flex {
        padding-bottom: 10px;
        display: flex;
        justify-content: space-between;
        .el-input {
            width: 300px;
        }
    }
    .danger-color {
        color: #f4516c;
    }
}
.ag-drawer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .cursor-point {
        cursor: pointer;
    }
}

.labelSelectTree {
    background-color: #fff;
    width: 96%;
    text-align: center;
    padding-left: 5%;
    margin-bottom: 10px;
}
.labelSelectTree.hover,
.labelSelectTree:hover {
    background-color: #fff;
}
.labelTree {
    .el-tree__empty-block {
        min-height: 115px;
    }
}

